#!/usr/bin/python
# -*-coding: UTF-8 -*-
"""
# Time: 2025/3/25 17:27
# @Project_name: PROJECT_NAME
"""


def think():
    print("好好学习, 天天向上")


def do(name):
    print(f"{name}要好好学习，天天向上")


def hobbys(name, hobby):
    print(f"{name}的爱好是{hobby}")


def introduce(name, age, work='自由职业'):
    if age >= 18:
        print(f"{name}是成年人, 今年{age}岁, 工作：{work}")
    else:
        print(f"{name}是未成年人, 今年{age}岁, 未参加工作")


def years(y):
    if y % 4 == 0 and y % 100 != 0:
        print("闰年")
    elif y % 400 == 0:
        print("润年")
    else:
        print("平年")


# 函数调用
think()  # 无参调用
hobbys('小明', '玩')  # 给形参传实参, 且是位置实参
introduce(name='张无忌', age=23, work='明教教主')  # 关键字实参
introduce(name='赵敏', age=22)  # 关键字实参
introduce(name='李秋水', age=17)  # 关键字实参
introduce("逍遥子", age=108, work='逍遥派掌门')  # 用了关键字实参,后续只能用关键字实参
for i in range(5):
    print(i)
    year = eval(input("请输入年份："))
    print(type(year))
    years(year)





